package com.zrrd.learn.chapter08面向对象.pattern;

/**
 * 设计模式
 *
 * @author wrn
 * @version 1.0
 * @date 2023/7/31 15:39
 */

public class Talk {

    public static void main(String[] args) {
        SingleObject s = SingleObject.getInstance();
        SingleObject s1 = SingleObject.getInstance();
        SingleObject s12 = SingleObject.getInstance();

        System.out.println(s);
        System.out.println(s1);
        System.out.println(s12);
        System.out.println(s == s1);
    }
}
